#include <iostream>
#include <string>
#include <vector>
using std::cin;
using std::cout;
using std::endl;
using std::string;
using std::vector;
using std::getline;


void print_array(vector<string> strs)
{
     for(int i = 0; i < strs.size(); i++)
     {
          cout << strs[i] << endl;
     }
     cout << endl;
}

int main(int argc, char* argv[])
{
     /* string vector */
     string test;
     vector<string> strs;
     cout << "input:" <<endl;
     while(1)
     {
          string input_buf;
          getline(cin, input_buf);
          if(input_buf.compare("")==0)
               break;
          strs.push_back(input_buf);
     }
     print_array(strs);
     strs.erase(strs.begin());
     print_array(strs);
}
